<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>高级检索</title>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css"/>
    <style>
        .inpLeft{
            margin-top: 8%;
            width: 91%;
        }
        .inpRight{
            margin-top: 8%;
            width: 91%;
        }
        .btn{
            position: absolute;
            right: 7%;
            bottom: 15%;
        }
    </style>
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-row">
            <div class="layui-col-xs6 layui-col-sm6 layui-col-md5">
                <div class="layui-form-item inpLeft">
                    <label class="layui-form-label">用户邮箱：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="email"   lay-verify=" " placeholder="请输入用户邮箱" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item inpLeft">
                    <label class="layui-form-label">身份证号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="idCard"   lay-verify=" " placeholder="请输入身份证号" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item inpLeft">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-inline">
                        <select name="sex" lay-filter="filter" lay-verify="filter">
                            <option value="">请选择状态</option>
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="layui-col-xs6 layui-col-sm6 layui-col-md5">
                <div class="layui-form-item inpRight">
                    <label class="layui-form-label">手机号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="phone"   lay-verify=" " placeholder="请输入手机号" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item inpRight">
                    <label class="layui-form-label">账户状态：</label>
                    <div class="layui-input-inline">
                        <select name="status" lay-filter="filter" lay-verify="filter">
                            <option value="">请选择状态</option>
                            <option value="1">使用中</option>
                            <option value="2">已注销</option>
                            <option value="3">冻结</option>
                            <option value="4">封停</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item inpRight">
                    <label class="layui-form-label">是否启用：</label>
                    <div class="layui-input-inline">
                        <select name="enabled" lay-filter="filter" lay-verify="filter">
                            <option value="">请选择状态</option>
                            <option value="1">启用</option>
                            <option value="2">停用</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="btn">
                <button type="submit" class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="formDemo">
                    确定
                </button>
                <a class="layui-btn layui-btn-sm layui-btn-primary" href="javascript:cancel();">
                    取消
                </a>
            </div>
        </div>
    </form>
</body>
    <script>
        var $;
        var element;
        var form;
        var table;
        var laydate;
        var status;
        var layer;
        layui.use(['jquery','element','form','table','laydate','layer'],function () {
            $ = layui.$;
            element = layui.element;
            form = layui.form;
            table = layui.table;
            laydate = layui.laydate;
            layer = layui.layer;

            form.on('submit(formDemo)', function(data){
                $.ajax({
                    url:'/Department/getJsUser',
                    dataType:'json',
                    data:data.field,
                    success:function (dat) {
                        parent.initTab(dat);
                        var layer = parent.layer;
                        layer.close(layer.index);
                    }
                });
                return false;
            });

        });

        function cancel() {
            var layer = parent.layer;
            layer.close(layer.index);
        }
    </script>
</html>